package com.ftg.learn.smhtml.qianduan.contorller;



import com.ftg.learn.smhtml.qianduan.pojo.Gaoceng;
import com.ftg.learn.smhtml.qianduan.service.GaocengService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/gaoceng")
public class GaocengContorller {

    @Autowired
    GaocengService gs;

    @GetMapping("/showgaoceng")
    public List<Gaoceng> showall(){
        return gs.showAll();

    }
    @PutMapping("/findone/{id}")
    public List<Gaoceng> findone(String id){
        return  gs.findone(id);//调




    }
}
